package p_1;

/**
 * Created with beyond
 * Date:2018/8/28
 * Time:20:47
 **/
public class p1_1_47 {



    public static void main(String[] args) throws InterruptedException {

        MyThread9 myThread9=new MyThread9();
        myThread9.start();
        Thread.sleep(1000);
        myThread9.suspend();
        System.out.println("main end");

    }
}
class MyThread9 extends Thread{

    private long i=0;
    @Override
    public void run(){

        while(true){
            i++;
            System.out.println(i);
        }

    }

}